-- GENERATED SPELL FOR [Skeletal Stallion] --


function spell0_20495(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20495', 2260, 1)
end

function spell1_20495(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20495', 6303, 1)
end

function Sorts_20495(pUnit, Event)
local choix_sorts_20495 = math.random(0, 1)
if choix_sorts_20495 == 0 then
pUnit:RegisterEvent('spell0_20495', 1, 1)
end
if choix_sorts_20495 == 1 then
pUnit:RegisterEvent('spell1_20495', 1, 1)
end
end

function mob20495_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20495', math.random(1500, 3000), 1)
end

function mob20495_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20495_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20495_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20495, 1, 'mob20495_Action')
RegisterUnitEvent(20495, 2, 'mob20495_Leave')
RegisterUnitEvent(20495, 3, 'mob20495_Kill')
RegisterUnitEvent(20495, 4, 'mob20495_Die')
